package com.example.takephotovideo.activity;

import android.os.Bundle;

import com.example.takephotovideo.R;
import com.example.takephotovideo.base.BaseActivity;
import com.example.takephotovideo.customview.ShowPhotoView;
import com.example.takephotovideo.customview.headview.HeadCustomView;
import com.example.takephotovideo.takephotovideo.PhotoVideoListBean;
import com.example.takephotovideo.utils.UUIDUtils;

import java.util.ArrayList;
import java.util.List;

public class ShowPhotoVideoActivity extends BaseActivity {
    private HeadCustomView title;
    private ShowPhotoView showphoto;

    private List<PhotoVideoListBean> fileListBeans = new ArrayList<>();


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_photo_video);
        title = findViewById(R.id.title);
        title.setTextTitle("展示图片或者图片");
        title.setIvBackGone();
        showphoto = findViewById(R.id.showphoto);
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/ceshivideo.mp4", true, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/ceshivideo.mp4", true, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));    fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/ceshivideo.mp4", true, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));    fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/ceshivideo.mp4", true, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        fileListBeans.add(new PhotoVideoListBean("http://47.100.250.181:8080/images/37WKKVZF.jpg", false, UUIDUtils.getRandomNumNumber()));
        showphoto.setDataList(fileListBeans);

    }
}
